#include<iostream>
#include<string>
using namespace std;
string s;
int main()
{
	string t;
	for (int i = 1; i <= 26; i++) {
		t += (char)(i - 1 + 'A');
	}
	while (getline(cin, s)) {
		string ans;
		for (auto x : s) {
			if (x == ' ') ans += " ";
			else ans += t[(x - 'A' - 5 + 26) % 26];
		}
		cout << ans << endl;
	}
	return 0;
}